<template>
  <div class="App">
    <div>
      <router-link to="/home">首页</router-link>
      <router-link to="/search">搜索</router-link>
    </div>
     <router-view></router-view>
  </div>
</template>

<script>
</script>

<style lang="less" scoped>
.App{
  a{
    margin-left: 10px;
  }
  a.router-link-active{
    background-color: yellow;
  }
}
</style> 